package com.hyxt.boot;

import com.alibaba.dubbo.config.annotation.Reference;
import com.hyxt.consumer.RedisServerAdapter;
import com.hyxt.dao.RedisServiceDAO;
import com.hyxt.provider.TermianalLinkServerImpl;
import com.hyxt.utils.RedisPoolUtil;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;


@SpringBootApplication
//@EnableAutoConfiguration(exclude = {
//        org.springframework.boot.autoconfigure.security.SecurityAutoConfiguration.class
//})
public class ApiStart {

    public static void main(String[] args) {
        // 程序启动入口
        // 启动嵌入式的 Tomcat 并初始化 Spring 环境及其各 Spring 组件
        ConfigurableApplicationContext run =  SpringApplication.run(ApiStart.class,args);
//        TermianalLinkServerImpl termianalLinkServer = run.getBean(TermianalLinkServerImpl.class);
//        List list = new ArrayList();
//        list.add(10000);
//        termianalLinkServer.startServer(list);
//        RedisServerAdapter redisServerAdapter = run.getBean(RedisServerAdapter.class);
//        redisServerAdapter.setString();
        System.out.print("success");
    }
}